Class ADMRegistrar


  • public class ADMRegistrar
    extends java.lang.Object
    Device registration class for ADM
    • Constructor Summary

      Constructors 
      Constructor Description
      ADMRegistrar()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.android.gms.tasks.Task<java.lang.String> getToken​(android.content.Context context)
      Creates a registration token if one does not exits using ADM apis.
      void registerDevice​(android.content.Context context, OnInitCallback onInitCallback)
      Starts the registration by trying to get registration Id and sends the response in callback.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ADMRegistrar

        public ADMRegistrar()
    • Method Detail

      • registerDevice

        public void registerDevice​(@NonNull
                                   android.content.Context context,
                                   @NonNull
                                   OnInitCallback onInitCallback)
        Starts the registration by trying to get registration Id and sends the response in callback.
        Parameters:
        context - : Application Context
        onInitCallback - : optional callback provided by app to receive device registration status
      • getToken

        public com.google.android.gms.tasks.Task<java.lang.String> getToken​(android.content.Context context)
        Creates a registration token if one does not exits using ADM apis.
        Parameters:
        context -
        Returns:
        Task with Token